<@compress single_line=isCompress>
<!DOCTYPE html>
<html>
<head>
<title>商家分类</title>
<#include "/pager/common/quote.html" />
<style type="text/css">
    .menus{width: 250px;float: left;}
    .edit{margin-left: 255px;}
</style>
</head>
<body>
    <div class="body-center">
        <div class="html-panel menus">
            <div class="panel-header"><div class="panel-title">商家分类结构</div></div>
            <div class="panel-content" id="menuMgrPanel">
                <div id="menuPanel" class="ztree"></div>
            </div>
        </div>
        <div class="html-panel edit">
            <div class="panel-header"><div class="panel-title">商家分类编辑</div></div>
            <div class="panel-content" id="editMenu">
                <form class="form_style" id="menuEditForm" onsubmit="return false;">
                    <input type="hidden" name="id" id="id" />
                    <div class="form-field">
                        <label for="name">名称：<font color="red">*</font></label>
                        <input class="easyui-validatebox" type="text" name="name" id="name" data-options="required:true" maxlength="30" />
                    </div>
     				<div class="form-field">
                        <label for="parentName">父分类：<font color="red">*</font></label>
                        <input class="easyui-validatebox" type="text" name="parentName" id="parentName" readonly="readonly" data-options="required:true" />
                        <input type="hidden" name="parentId" />
                    </div>
                    <div class="form-field">
                        <label for="sort">排序：<font color="red"></font></label>
                        <input class="easyui-validatebox" type="text" name="sort" id="sort" maxlength="5" />
                    </div>
                    <div class="form-field">
                        <label for="sort">编号：<font color="red"></font></label>
                        <input class="easyui-validatebox" type="text" name="code" id="code" maxlength="5" readonly="readonly"/>
                    </div>
                    <div class="form-field">
                        <label for="remark">描述：<font color="red"></font></label>
                        <input class="easyui-validatebox" type="text" name="remark" id="remark" maxlength="5" />
                    </div>
                    <div class="form-field" style="padding-left: 80px;">
                        <span class="spacing"><input type="submit" id="submitForm" value="提交" /></span>
                        <span class="spacing"><input type="reset" id="resetForm" value="重置"/></span>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">
window.menus = ${businessTypesJson};
window.menus.push({id:0,isParent:true, parentId:-1,status:1,name:'商家分类管理'});
</script>
</@compress>